﻿@model IList<HZU.ZP.Domain.Model.ApplyRecord>
@{
    Layout = "_CompanyLayout";
}
<script type="text/javascript">
        $(document).ready(function () {
            $(".eee").mouseover(function () {
                $(this).css({ "background-color": "gainsboro" });
            }).mouseout(function () {
                $(this).css({ "background-color": "" });
            });
        });
</script>
<script>
        $(function () {
            $(".nav.nav-tabs li").eq(@((int)ViewData["Processing"]-1)).addClass("active");
       });
</script>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="row clearfix">
                <div class="col-md-2 column">

                </div>
                <div class="col-md-2 column">
                </div>
                <div class="col-md-2 column">
                    <h4><a href="/Place/GetList" style="color:black">笔试/面试场地管理</a></h4>
                </div>
                <div class="col-md-2 column">
                    <h4><a href="/Position/GetComPosition?email=@User.Identity.Name&status=1" style="color:black;">职位管理</a></h4>
                </div>
                <div class="col-md-2 column">
                    <h4><a href="/ApplyRecord/GetApplyRecordCom?email=@User.Identity.Name">应聘管理</a></h4>
                </div>
                <div class="col-md-2 column">
                    <h4 style="color:blue"><a href="/CompanyInformation/GetCompanyInformation?email=@User.Identity.Name" style="color:black;">企业信息管理</a></h4>
                </div>
            </div>
        </div>
    </div>
    <br />
    <div class="row clearfix">
        <ul class="nav nav-tabs">
            <li>
                <a href="/ApplyRecord/GetApplyRecordCom?email=@User.Identity.Name&processing=1">未查看</a>
            </li>
            <li>
                <a href="/ApplyRecord/GetApplyRecordCom?email=@User.Identity.Name&processing=2">已查看</a>
            </li>
            <li>
                <a href="/ApplyRecord/GetApplyRecordCom?email=@User.Identity.Name&processing=3">感兴趣</a>
            </li>
            <li>
                <a href="/ApplyRecord/GetApplyRecordCom?email=@User.Identity.Name&processing=4">邀面试</a>
            </li>
            <li>
                <a href="/ApplyRecord/GetApplyRecordCom?email=@User.Identity.Name&processing=5">不合适</a>
            </li>
        </ul>
    </div>
    <div class="row clearfix">
        <div class="col-md-2 column">
            <span>姓名</span>
        </div>
        <div class="col-md-2 column">
            <span>性别</span>
        </div>
        <div class="col-md-2 column">
            <span>邮箱</span>
        </div>
        <div class="col-md-2 column">
            <span>职位名</span>
        </div>
        <div class="col-md-2 column">
            <span>公司名称</span>
        </div>
        <div class="col-md-2 column">
            <span>投递时间</span>
        </div>
    </div>
    @if (Model.Count() > 0)
    {
        foreach (var appRc in Model)
        {
            <div class="eee">
                <div class="row clearfix">
                    <div class="col-md-2 column">
                        <a href="/ApplyRecord/HandleRecord?email=@User.Identity.Name&id=@appRc.Id" style="color:red;">@appRc.ApplicantName</a>
                    </div>
                    <div class="col-md-2 column">
                        @appRc.ApplicantSex
                    </div>
                    <div class="col-md-2 column">
                        @appRc.ApplicantEmail
                    </div>
                    <div class="col-md-2 column">
                        <a href="/Position/GetPosition?id=@appRc.PositionId" style="color:red;">@appRc.PositionName</a>
                    </div>
                    <div class="col-md-2 column">
                        @appRc.CompanyName
                    </div>
                    <div class="col-md-2 column">
                        @appRc.CreateTime.ToString("yyyy-MM-dd")
                    </div>

                </div>
            </div>
        }
    }
    else
    {
        <br />
        <h4 style="height:300px;text-align:center">无数据。。。</h4>
    }
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div style="text-align: center;">
                <ul class="pagination">
                    @for (int i = (int)ViewData["PageIndex"] - 2 <= 0 ? 1 : (int)ViewData["PageIndex"] - 2; i < (int)ViewData["PageIndex"]; i++)
                    {
                        <li><a href="/ApplyRecord/GetApplyRecordCom?email=@User.Identity.Name&processing=@((int)ViewData["Processing"])&pageIndex=@i">@i</a></li>
                    }
                    @if ((int)ViewData["PageIndex"] > 0)
                    {
                        <li><a href="javascript:;" style="background-color:LightGrey">@((int)ViewData["PageIndex"])</a></li>
                    }
                    @for (int i = (int)ViewData["PageIndex"] + 1; i <= (int)ViewData["Total"] && i < (int)ViewData["PageIndex"] + 2; i++)
                    {
                        <li><a href="/ApplyRecord/GetApplyRecordCom?email=@User.Identity.Name&processing=@((int)ViewData["Processing"])&pageIndex=@i">@i</a></li>
                    }
                    <li><a style="border :none;background-color:white">&nbsp;&nbsp;&nbsp;&nbsp;共@((int)ViewData["Total"])页</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>

